/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package holdemdealer.players;

import java.util.ArrayList;
import player.Player;

/**
 *
 * @author Администратор
 */
public class PlayersList {

    private static PlayersList playersList;
    private static ArrayList<Player> players;

    public static PlayersList instance() {
        if (playersList == null) {
            playersList = new PlayersList();
        }
        return playersList;
    }

    private PlayersList() {
        players = new ArrayList<Player>();
    }

    public void addPlayer(String playerId) {
        players.add(new Player(playerId));
    }

    public PlayersList getPlayersList() {
        return playersList;
    }
}
